#!/bin/bash

mvn -Dmaven.test.skip=true clean package
declare -a deployinstances=("dg2ceptool" "dg2cepcsvreplay" "dg2cepdcell1" "dg2cepdgrid1")

## looping trough deploy instances
for di in "${deployinstances[@]}"
do
   rsync -av src/main/resources/* azureuser@$di.cloudapp.net:/home/azureuser
   rsync -av target/dg2cep-jar-with-dependencies.jar azureuser@$di.cloudapp.net:/home/azureuser
done
